package com.qf.ks.mapper;

import com.qf.ks.pojo.Users;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {
    @Insert("insert into users(username, password, passwordsalt, registrydate, lastlogindate, currentlogindate) VALUES (#{username},#{password},#{passwordsalt},#{registrydate},#{lastlogindate},#{currentlogindate})")
    void addUser(Users user);

    @Select("select username from users")
    List<String> usernameList();
}
